import {getToken} from "@/utils/auth.js";

export default (config, isToken) => {
    console.log('isToken', isToken)
    if (getToken() && !isToken) {
        config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
    }
    return config;
}